package lesson15;

public class ConstructorsExample {
	
	public static void main(String[] args){
		
		Car myCar1 = new Car("Fiesta", false, "blue");
		//myCar1.printCarInfo();
		
		Car myCar2 = new Car("Subaru", true, "light blue", 25999.95, 210);
		System.out.println(myCar2);
		
		//Person someone = new Person("John Doe");
		
		//Person noOne = new Person();
		
		//Person p1 = new Person("Ivan", 20);
		//System.out.println(p1.name);
		//System.out.println(p1.age);
		
		//Car subaru = new Car("Subaru", true, "blue");
		
	}

	public static void printPersonInfo(Person person)
	{
		System.out.println("Name: " + person.name);
		System.out.println("Age: " + person.age);
		System.out.println("Personal Number: " + person.personalNumber);
		System.out.println("Sex: " + person.sex);
		System.out.println("Weight: " + person.weight);
		System.out.println("Friends: " + person.friends);
	}
	
	public static void printCarInfo(Car car)
	{
		System.out.println("Model: " + car.model);
		System.out.println("Current speed: " + car.currentSpeed);
		System.out.println("Color: " + car.color);
		System.out.println("Max speed: " + car.maxSpeed);
	}
}
